#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

void table(int i)

{

	int y = 0;

	for (y = 1; y <= i; y++)

	{

		int x = 0;

		for (x = 1; x <= y; x++)

		{

			printf("%d*%d=%d ", x, y, x * y);

		}

		printf("\n");

	}

}

int main()

{

	int i = 0;

	while (scanf("%d", &i) != EOF)

	{

		table(i);

	}

	return 0;

}